package io.github.topcatv.mall.model.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.github.topcatv.mall.model.sys.entity.Role;

import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liuyi
 * @since 2019-10-14
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据用户Id查询角色
     * @param userId
     * @return
     */
    Set<Role> selectByUserId(Integer userId);
}
